package mydemo.springcloudalibaba.sentinel.myHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import mydemo.springcloudalibaba.api.common.entity.CommonResult;
import org.springframework.stereotype.Component;

public class CousumerHandler {
    public  static CommonResult CommonCousumerHandler(BlockException e){
        return new CommonResult(444, "CommonCousumerHandler", e.getClass().getCanonicalName());
    }
    public static CommonResult CommonCousumerHandler2(BlockException e){
        return new CommonResult(444, "CommonCousumerHandler2", e.getClass().getCanonicalName());
    }
}
